﻿$(window).load(function() {
	$('.blueberry').blueberry();
});

$(document).ready(function(){

	/* score_button hover */
	$('.jquery_score_button').hover(function(){
		$(this).css('background-position','0 -50px');
	},function(){
		$(this).css('background-position','0 0');
	})
	
	/* header_hideInfo slideDown */
	$('.header_myInfo').mousemove(function(){
		var header_myInfo = $('.header_myInfo').css("width");
		$('.header_hideInfo').show();
		$('.header_hideInfo').css("width",header_myInfo);
	})
	$('.header_myInfo').mouseleave(function(){
		$('.header_hideInfo').stop(true,true).slideUp("fast");
	})
	
	/* novice_login show */
	$('.novice_login').unbind('click');
	$('.personal_close').unbind('click');
	var bodyHeight = $(document).height();  //获取body高度
	$('.novice_login').css('height',bodyHeight);  //设置.novice_login高度
	$('.header_setup').click(function(){
		$('.personal_info').css('top','0px')
		$('.novice_login').fadeIn();
		$('.personal_info')
			.fadeIn()
			.animate({
				'top':50
			},{duration:'normal',queue:false});
		return false;
	})
	$('.personal_close').click(function(){
		$('.personal_info')
			.fadeOut()
			.animate({
				'top':0
			},{duration:'normal',queue:false});
		$('.novice_login').fadeOut();
	})
	
	/* delet tr node */
	$('.score_delect').click(function(e){
		var index = $('.score_delect').index(this);
		$(this).parent().parent().remove();
		return false;
	})
	
	//food.php食品分类效果
	$('.fc_content li').hover(function(){
		var $secCate = $(this).find('.food_detailedInfo');
		$secCate.show();
		var navTop0 = $('.fc_content li').eq(0).offset().top;
		var navTop = $(this).offset().top;
		$secCate.css('top',navTop - navTop0);
		$secCate.parent().find('.food_BigCate').css({
			'background':'#fff',
			'height':'39px',
			'border-top':'1px solid #e3e3e3',
			'border-bottom':'1px solid #e3e3e3',
			'border-left':'1px solid #e3e3e3',
			'color':'#fcb800',
			'text-decoration':'none'
		})	
	},function(){
		var $secCate = $(this).find('.food_detailedInfo');
		$secCate.hide();
		$secCate.parent().find('.food_BigCate').css({
			'background':'#fff',
			'color':'#709e18',
			'height':'41px',
			'border':'none'
			
		})
	})
	$('a.food_BigCate').click(function(e){
		e.preventDefault();
	})
	
	
	//food_botNav
	$('.food_botNav li').click(function(){
		var index = $('.food_botNav li').index(this);
		$(this).find('a').addClass('food_botNav_currunt');
		$(this).siblings().find('a').removeClass('food_botNav_currunt');
		$('.food_table').hide();
		$('.food_table').eq(index).show();
		return false;
	})
	
	//投票评分功能
	var comment_bar = function(){ //计算得分函数
		var goodScore = $('#getVoteScore').val();
		var bar_len;
		var goodbar_len;
		bar_len = $('.comment_bar').width();
		goodbar_len = goodScore * bar_len;
		$('.comment_goodbar').css('width',0);
		$('.comment_goodbar').animate({'width':goodbar_len},900);
		
		
		var goodMath = goodScore*100
		var badMath = (100 - goodMath) + "%";
		var goodMath = goodScore*100 + '%';
		$('.goodMath').text(goodMath);
		$('.badMath').text(badMath);
	}
	
	comment_bar();
	
	//投票
	$('.comment_good').one('click',function(event){
		var index = $('.comment_good').index(this);
		var	basic_id = $('.hiddenBasicId').eq(index).val();
		var	userIp = $('#userIp').val();

		$.post(
			'ajax/vote.php',
			{'basic_id':basic_id,'userIp':userIp,'type':1},
			function(data){
				$('#getVoteScore').attr('value',data);
				var ajaxMath = $("<span class='comment_num goodMath'></span>");
				$('.ajaxRateGood').prepend(ajaxMath);
				comment_bar();
			}
		);
		
		event.preventDefault();
	});
	
	$('.comment_bad').one('click',function(event){
		var index = $('.comment_bad').index(this);
		var	basic_id = $('.hiddenBasicId').eq(index).val();
		var	userIp = $('#userIp').val();

		$.post(
			'ajax/vote.php',
			{'basic_id':basic_id,'userIp':userIp,'type':0},
			function(data){
				$('#getVoteScore').attr('value',data);
				var ajaxMath = $("<span class='comment_num badMath'>");
				$('.ajaxRateBad').prepend(ajaxMath);
				comment_bar();
			}
		);
		
		event.preventDefault();
	});

	


/* report */

	var chart;
    $(document).ready(function() {
    	
	//表1的数据
	var biao1=$(".b1_1").text();	
	var b1_1=biao1.split("|");
	//b1_11=toInt(b1_1);
	var biao1=$(".b1_2").text();
	var b1_2=biao1.split("|");
	b1_2=toInt(b1_2);
	b1_2=tobai(b1_2);
	//alert(b1_2[0]);
	var b1=new Array();
	for(var i=0;i<b1_1.length;i++){	
		b1[i]=new Array();			
		b1[i][0]=b1_1[i];
		b1[i][1]=b1_2[i];		
	}
	//alert(b1[0][1]);
	//alert(b1);
	
	//表2的数据
	var biao2=$(".b2_1").text();	
	var b2_1=biao2.split("|");
	//b1_11=toInt(b1_1);
	var biao2=$(".b2_2").text();
	var b2_2=biao2.split("|");
	var biao2=$(".b2_3").text();
	var b2_3=biao2.split("|");
	b2_3=toInt(b2_3);
	b2_2=toInt(b2_2);
	//alert(b2_2);
	
	//表3的数据
	var biao3=$(".b3_1").text();	
	var b3_1=biao3.split("|");
	//b1_11=toInt(b1_1);
	var biao3=$(".b3_2").text();
	var b3_2=biao3.split("|");
	b3_2=toInt(b3_2);
	//alert(b3_2);
	
	
	
		/* report_foodTypePie */
		chart = new Highcharts.Chart({
            chart: {
                renderTo: 'report_foodTypePie',
                plotBackgroundColor: null,
                plotBorderWidth: null,
                plotShadow: false
            },
            title: {
                text: '今日饮食统计'
            },
            tooltip: {
                formatter: function() {
					var rate = this.percentage.toFixed(1);
					//parseInt
                    return '<b>'+ this.point.name +'</b>: '+ rate +' %';
                }
            },
            plotOptions: {
                pie: {
                    allowPointSelect: true,
                    cursor: 'pointer',
                    dataLabels: {
                        enabled: true,
                        color: '#000000',
                        connectorColor: '#000000',
                        formatter: function() {
							var rate = this.percentage.toFixed(1);
                            return '<b>'+ this.point.name +'</b>: '+ rate +' %';
                        }
                    }
                }
            },
            series: [{
                type: 'pie',
                name: '食品类型',
                data: b1
                
            }]
        });
		
		
		/* report_additiveChart */
        chart = new Highcharts.Chart({
            chart: {
                renderTo: 'report_additiveChart',
                type: 'bar'
            },
            title: {
                text: '添加剂监控'
            },
            xAxis: {
                categories: b2_1
            },
            yAxis: {
                min: 0,
                title: {
                    text: '单位/mg'
                }
            },
            legend: {
                backgroundColor: '#FFFFFF',
                reversed: true
            },
            tooltip: {
                formatter: function() {
                    return ''+
                        this.series.name +': '+ this.y +'';
                }
            },
            plotOptions: {
                series: {
                    stacking: 'normal'
                }
            },
                series: [{
                name: '超标',
                data: b2_3
            }, {
                name: '正常',
                data: b2_2
            }]
        });
		
		/* report_coreLine */
		chart = new Highcharts.Chart({
            chart: {
                renderTo: 'report_coreLine',
                type: 'line',
                marginRight: 130,
                marginBottom: 25
            },
            title: {
                text: '您的得分情况',
                x: -20 //center
            },
            subtitle: {
                text: '',
                x: -20
            },
            xAxis: {
                categories: b3_1
            },
            yAxis: {
                title: {
                    text: '得分'
                },
                plotLines: [{
                    value: 0,
                    width: 1,
                    color: '#808080'
                }]
            },
            tooltip: {
                formatter: function() {
                        return this.x +': '+ this.y +'分';
                }
            },
            legend: {
                layout: 'vertical',
                align: 'right',
                verticalAlign: 'top',
                x: -10,
                y: 100,
                borderWidth: 0
            },
            series: [{
                name: '近日得分',
                data: b3_2
            }]
        });
		
    });
	
	$('form').submit(function(){
		$(':submit',this).attr('disabled','disabled');
	})
	
	/***  城市选择器  ***/
	$('.city_cities').hide();
	$('.city_slider').click(function(){
		$('.city_selector').hide(500);
	})
	var searchCity = function(){
	cities = new Array();
	pro = new Array("港澳台藏", "直辖市", "河北", "山西", "辽宁", "吉林", "江苏", "浙江", "安徽", "福建", "江西", "山东", "河南", "湖北", "湖南", "广东", "广西", "海南", "四川", "贵州", "云南", "陕西", "甘肃", "青海", "宁夏", "新疆", "内蒙", "黑龙江");
	cities['港澳台藏'] = new Array("澳门", "香港", "台湾", "拉萨");
	cities['直辖市'] = new Array("北京", "上海", "重庆", "天津");
	cities['河北'] = new Array("唐山", "邯郸", "保定", "承德", "秦皇岛", "石家庄");
	cities['山西'] = new Array("太原", "大同", "阳泉", "长治", "晋城", "晋中", "运城", "临汾");
	cities['内蒙'] = new Array("呼和浩特", "呼伦贝尔", "包头", "乌海", "赤峰", "兴安盟");
	cities['辽宁'] = new Array("沈阳", "大连", "鞍山", "抚顺", "本溪", "丹东", "锦州", "阜新", "辽阳", "铁岭");
	cities['吉林'] = new Array("长春", "吉林", "四平", "辽源", "通化", "松原");
	cities['黑龙江'] = new Array("哈尔滨", "大兴安岭", "鸡西", "大庆", "黑河", "齐齐哈尔");
	cities['江苏'] = new Array("南京", "无锡", "徐州", "常州", "苏州", "南通", "扬州", "镇江", "连云港");
	cities['浙江'] = new Array("杭州", "宁波", "温州", "嘉兴", "绍兴", "金华", "衢州", "台州", "丽水");
	cities['安徽'] = new Array("合肥", "芜湖", "蚌埠", "淮南", "淮北", "铜陵", "安庆", "黄山", "马鞍山");
	cities['福建'] = new Array("福州", "厦门", "莆田", "三明", "泉州");
	cities['江西'] = new Array("南昌", "九江", "鹰潭", "赣州", "上饶", "景德镇");
	cities['山东'] = new Array("济南", "青岛", "烟台", "德州", "聊城", "滨州", "荷泽");
	cities['河南'] = new Array("郑州", "开封", "洛阳", "安阳", "许昌", "南阳", "周口", "驻马店", "三门峡");
	cities['湖北'] = new Array("武汉", "黄石", "宜昌", "荆门", "荆州", "黄冈", "咸宁", "恩施");
	cities['湖南'] = new Array("长沙", "湘潭", "岳阳", "常德", "益阳", "郴州", "湘西", "张家界");
	cities['广东'] = new Array("广州", "韶关", "深圳", "珠海", "汕头", "佛山", "江门", "湛江", "惠州", "东莞", "中山");
	cities['广西'] = new Array("南宁", "柳州", "桂林", "北海", "玉林");
	cities['海南'] = new Array("海口", "三亚", "海南沿革");
	cities['四川'] = new Array("成都", "泸州", "德阳", "绵阳", "乐山", "眉山", "宜宾", "攀枝花");
	cities['贵州'] = new Array("贵阳", "遵义", "安顺", "铜仁", "六盘水");
	cities['云南'] = new Array("昆明", "曲靖", "玉溪", "保山", "丽江", "大理");
	cities['陕西'] = new Array("西安", "铜川", "宝鸡", "咸阳", "延安", "汉中");
	cities['甘肃'] = new Array("兰州", "金昌", "白银", "天水", "嘉峪关");
	cities['青海'] = new Array("西宁", "海东", "海北", "黄南", "海南", "果洛", "玉树", "海西");
	cities['宁夏'] = new Array("银川", "吴忠", "固原", "中卫");
	cities['新疆'] = new Array("乌鲁木齐", "克拉玛依", "哈密", "伊犁", "吐鲁番");
	for (p in pro) {
        $("<a href=\"#\">" + pro[p] + "</a>").appendTo('.jq_province').click(function(e){
            var i = $(this).text();
			$('.jq_cities').empty();
            //被点了的省份字体色改变
			$(this).siblings().css('color','#333');
            $(this).css('color','#699000');
			$('.city_cities').fadeIn();
            for (c in cities[i]) {
                $("<a href=\"?search=" + cities[i][c] + "\">" + cities[i][c] + "</a>").appendTo('.jq_cities').click(function(){
                    //被点了的城市字体色改变
					$(this).siblings().css('color','#333');
                    $(this).css('color', '#699000');
					var cityName = $(this).text();
					$('.city_tip span').text(cityName);
                });
            }
       e.preventDefault();
        });
    }
	}
	searchCity()
	
	var searchFood = function(){
	food = new Array();
	pro = new Array("调味品","乳制品", "休闲食品", "酒", "饮料", "方便食品", "油粮", "冲调饮品", "饼干糕点", "婴幼儿食品", "茶叶/茶包", "其他保健品");
	food['调味品'] = new Array("调味酱", "醋", "火锅调料", "泡打粉","味精/鸡精","咖喱","料酒","盐/糖","调味汁/粉","腐乳");
	food['乳制品'] = new Array("酸奶", "新鲜低温奶", "乳酪/芝士/炼乳", "冰淇淋","常温奶","豆奶","儿童奶","成人奶粉");
	food['休闲食品'] = new Array("膨化食品", "巧克力", "果冻/布丁/龟苓膏", "蜜饯果脯", "速冻食品", "豆类零食","海味零食","地方特产类","小吃类","鸡鸭禽类","糖果","肉脯肉松","坚果/干果","口香糖");
	food['酒'] = new Array("啤酒", "白酒", "滋补酒", "葡萄酒", "预调酒");
	food['饮料'] = new Array("乳酸菌饮料", "蜂蜜/柚子茶/秋梨", "果汁/蔬菜汁", "果醋饮料", "维生素饮料", "运动饮料", "水", "植物饮料","果汁奶饮料");
	food['方便食品'] = new Array("方便面", "方便汤料", "方便主食", "罐头", "肉制品", "方便粉丝/米线","方便粥类","方便米饭","酱菜");
	food['油粮'] = new Array("食用油", "面粉", "豆制品", "面条", "大米");
	food['冲调饮品'] = new Array("咖啡", "糊状冲调品", "奶茶/巧克力粉", "果味冲调品");
	food['饼干糕点'] = new Array("饼干", "点心类", "蛋糕/面包");
	food['婴幼儿食品'] = new Array("辅食", "婴幼儿奶粉");
	food['茶叶/茶包'] = new Array("绿茶", "花茶", "袋泡茶", "红茶", "普洱茶");
	food['其他保健品'] = new Array("其他保健食品");
	for (p in pro) {
        $("<a href=\"#\">" + pro[p] + "</a>").appendTo('.jq_category').click(function(e){
            var i = $(this).text();
			$('.jq_detailFood').empty();
            //被点了的省份字体色改变
			$(this).siblings().css('color','#333');
            $(this).css('color','#699000');
			$('.city_cities').slideDown(100);
			$('.js_foodName').slideUp(100);
            for (c in food[i]) {
                $("<a href=''>" + food[i][c] + "</a>").appendTo('.jq_detailFood').click(function(){
                    //被点了的城市字体色改变
					$(this).siblings().css('color','#333');
                    $(this).css('color', '#699000');
					var foodName = $(this).text();
					$('.city_tip span').text(foodName);
                });
            }
       e.preventDefault();
        });
    }
	$('.jq_lastFood a').live('click',function(){
		$('.js_foodNameBox').html($(this).text());
		$(this).siblings().css('color','#333');
		$(this).css('color', '#699000');
		$('.score_eatWhat').val($(this).text());
		return false;
	})
	$('.change_Input').click(function(){
		var index = $('.change_Input').index(this);
		if(index == 0){
			$('.score_inputWay').eq(index).hide().animate({'left':-652},'fast');
			$('.score_inputWay').eq(index+1).show().animate({'left':0},'fast');
			$('.js_eatWhat').eq(index+1).after($('.slideBar'));
			$('.appendEatSub').eq(index+1).append($('.subEatFood'));
		}else{
			$('.score_eatWhat').val('');
			$('.score_inputWay').eq(index).hide().animate({'left':652},'fast');
			$('.score_inputWay').eq(index-1).show().animate({'left':0},'fast');
			$('.js_eatWhat').eq(index-1).after($('.slideBar'));
			$('.appendEatSub').eq(index-1).append($('.subEatFood'));
		}
		return false;
	})
	}
	searchFood();
	
	
	
function toInt(dates){
var datess=new Array();
	for(var i=0;i<dates.length;i++){
		//dates[i]=new String();
		//alert(dates[i]);
		datess[i]=parseInt(dates[i]);
	}
	return datess;
}

function tobai(date){
	var dates=0;
	for(var i=0;i<date.length;i++){
		dates=dates+date[i];
		}
		date[0]+=100-dates;
		return date;
	}

function var_dump(o){
 var str = [];
 var pre = '';
 typeof o == 'function' && '';
 typeof o == 'string' ? alert(o) : alert(each.call(o));
 function each(o){
   for(var p in this){
           typeof this[p] == 'object' && (pre += '[' + p + '].' , each.call(this[p])) || str.push( pre + '[' + p + ']->[' + this[p] + '] \r\n')
   }
   return str.join('');
 }
}


//time_line特效
	/* initial */
var date_len = $('.tl_numberDate li').length;
if(date_len == 1){$('js_tl_change').hide()}
$('.tl_numberDate li').eq(0).addClass('tl_dateCurrunt');
$('.tl_contentUl li').eq(0).addClass('tl_c_currunt');
for(var i=0;i<date_len;i++){
	$('.tl_numberDate li').eq(i).css('left',300 + i * 180);
}
$('.js_tl_change').hover(function(){
	$(this).stop().animate({'backgroundPositionY':-76},150);
},function(){
	$(this).stop().animate({'backgroundPositionY':-38},150);
})
$('.tl_content').eq(0).siblings().fadeTo(10,0);

	/* NEXT->TIME */
var nextTime = function(){
	var current = $('.tl_content').index($('.tl_c_currunt'));
	if(current != date_len-1){
		/* TOP */
		$('.tl_numberDate li').each(function(){
			var thisLeft = parseInt($(this).css('left'));
			$(this).animate({'left':thisLeft - 180},150);
		})
		$('.tl_dateCurrunt').next().addClass('tl_dateCurrunt').end().removeClass('tl_dateCurrunt');

		/* CONTENT */
		var thisMarginLeft = parseInt($('.tl_contentUl').css('margin-left'));
		$('.tl_c_currunt').fadeTo(400,0).next().fadeTo(400,1).parent().animate({'marginLeft':thisMarginLeft - 705},150);
		$('.tl_c_currunt').next().addClass('tl_c_currunt').end().removeClass('tl_c_currunt');
	}
}

	/* PREV->TIME */
var prevTime = function(){
	var current = $('.tl_content').index($('.tl_c_currunt'));
	if(current != 0){
		/* TOP */
		$('.tl_numberDate li').each(function(){
			var thisLeft = parseInt($(this).css('left'));
			$(this).animate({'left':thisLeft + 180},150);
		})
		$('.tl_dateCurrunt').prev().addClass('tl_dateCurrunt').end().removeClass('tl_dateCurrunt');

		/* CONTENT */
		var thisMarginLeft = parseInt($('.tl_contentUl').css('margin-left'));
		$('.tl_c_currunt').fadeTo(400,0).prev().fadeTo(400,1).parent().animate({'marginLeft':thisMarginLeft + 705},150);
		$('.tl_c_currunt').prev().addClass('tl_c_currunt').end().removeClass('tl_c_currunt');
	}
}

$('.tl_next').click(function(){nextTime()});
$('.tl_prev').click(function(){prevTime()});

		/* KEY-EVENT */
$(document).keydown(function(event){
	if(event.keyCode == 39){$('.tl_next').click()}
	if(event.keyCode == 37){$('.tl_prev').click()}
})


/********* NEWSMAP **********/

//step1:下拉框left居中定位
var bodyWidth = $(document).width();
var moreWidth = $('.map_look_more').width();
var $moreWrap = $('.map_look_more');
$moreWrap.css('left',bodyWidth/2-moreWidth/2);
$moreWrap.bind('click',function(){
	$moreWrap.animate({'height':39},200);
})

$moreWrap.mouseleave(function(e){
	setTimeout(function(){$moreWrap.stop().animate({'height':17},200)},600);
})

$('.gmnoprint').hide();

/********* share|分享 **********/

$('.home_share').live('click',function(){
	var windH = $(window).height();
	$('.shareBg').height(windH);
	$('html').css('overflow','hidden');
	$('.shareWrap').show();
	
	//modify by zhouyi 08-13
	//填充提示语
	$('.share_textarea').val('分享一天的饮食情况');
 	$(".share_textarea").focus(function(){
    		$(".share_textarea").val('');
  	});
	
})
$('.shareBg').click(function(){
	$('.shareWrap').hide();
	$('html').css('overflow','visible');
})


//add by zhouyi 08-13 19:39
$('.shareBtn').live('click',function(event){
	
	var user_content = $('.share_textarea').val();
	$.ajax({
	url:'ajax/share.php',
	data: {'type':'insert','message':user_content},
	type:'post',
	anysc:true,
	success:function(data){
		alert('分享成功');
	}	
	});

	$('.shareWrap').hide();
	$('html').css('overflow','visible');

	event.preventDefault();
});

$('.share_vote').one('click',function(event){

	var index = $('.share_vote').index(this);
	var bbs_id = $('.bbs_id').eq(index).val();
	
	$.ajax({
	url:'ajax/share.php',
	data: {'type':'vote','bbs_id':bbs_id},
	type:'post',
	anysc:true,
	success:function(data){
		$('.share_vote').eq(index).html(data);
	}	
	}); 

	event.preventDefault();
});


/********* share|导航切换 **********/
$('.share_nav li').click(function(){
	var index = $('.share_nav li').index(this);
	$(this).siblings().removeClass('share_selected');
	$(this).addClass('share_selected');
	$('.share_contents').hide();
	$('.share_contents').eq(index).show();
})

/********* newly time_line *********/

/* var isIE=!!window.ActiveXObject;//判断IE
var isIE6=isIE&&!window.XMLHttpRequest;//判断IE6
var timenavLeft = $('.user_timeline').offset().left;
var timenavTop = $('.user_timeline').offset().top;
$(window).scroll(function(){ //时间导航和屏幕一起滚动
	if(isIE){
		var scrollTop = $('html').scrollTop();
	}else{
		var scrollTop = $(document).scrollTop();
	}

	if(scrollTop > timenavTop){
		$('.side_line').css({
			'position': 'fixed',
			'top': 27,
			'left': timenavLeft
		})
		if(isIE){
			if(isIE6){
				$('.side_line').css({
					'position': 'absolute',
					'left': 0,
					'top': 27 + scrollTop - timenavTop
				})
			}
		}
	}else{
		$('.side_line').css({
			'position': 'absolute',
			'top': 27,
			'left': 0
		})
	}

});

$('.side_line_inner a').click(function(){
	var timeClassName = $(this).attr('id');
	var timeClassTop = $('.'+timeClassName).offset().top;
	//timeline_current
	$(this).parent().siblings().find('a').removeClass('timeline_current');
	$(this).addClass('timeline_current');
	
	if(jQuery.browser.safari){
		$('body').stop().animate({'scrollTop': timeClassTop - 27},'fast');
	}else{
		$('html').stop().animate({'scrollTop': timeClassTop - 27},'fast');
	}
	return false;
}) */
/**对比链接**/
 $('.com_a').click(function(){
		$('.compare_table').show()
	return false; }) 
$('.com_hidden').click(function(){
	$('.compare_table').hide();
})
/***评论提交按钮的出现****/

/*  function sss(){
	$(".sure_submit").show()
	};
function aa(){
	$(".sure_submit").hide()
	}; */

$(".comment_input_inner").click(function(){
	$(".sure_submit").show();
})

/******投票鼠标事件******/
$(".food_vote").hover(function(){

		$(".food_inner").css({"border":"#fcb800 1px solid","border-right":"none"});},
		function(){
			$(".food_inner").css({"border":"none"});
		
	})
$(".food_vote").hover(function(){
		$(".vote").show()},function(){
		$(".vote").hide();
		
		
	})

$(".food_vote").hover(function(){
		$(".none_border").show()},function(){
		$(".none_border").hide();
		
	})	
$('.vote').hover(function(){
		
		$('.vote').css({"background-color":"#fcb800"}),
		$('.com_a').css({"color":"white"}),
		$('.food_inner').css({"border":"#fcb800 1px solid","border-right":"none"})
		;},
		
		 function(){
			$('.vote').css({"background-color":"white"}),
			$('.com_a').css({"color":"#fcb800"}) ,
			$('.food_inner').css({"border":"none"}) ;
		} )
		
		
	
	
});




